package se.webbzon.boltzmann.game.event;

import se.webbzon.boltzmann.game.npc.GameNPC;
import se.webbzon.boltzmann.game.npc.StalkingDuty;
import se.webbzon.oschi01.worldarea.WorldArea;
import se.webbzon.oschi01.worldobject.WorldObject;

public class NPCStalkEvent extends AbstractGameEvent {
	
	// The binding of this non-player character event
	private final WorldObject binding;
	
	/*============================================================
	Constructors
	============================================================*/
	
	public NPCStalkEvent(WorldObject binding) {
		this.binding = binding;
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override protected void onBegin(WorldArea world) {
		if (binding instanceof GameNPC) {
			GameNPC npc = (GameNPC) binding;
			npc.forceDuty(new StalkingDuty(npc,192,192,48));
		}
		end();
	}

	@Override protected void onEnd() {};

}
